<nav class="navbar navbar-default navbar-static-top" role="navigation">
		<div class="container">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed"
					data-toggle="collapse" data-target="#example-navbar-collapse" aria-expanded="false"
					aria-controls="navbar">
					<span class="sr-only">Toggle navigation</span> 
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>
				<a class="navbar-brand" href="${ContextPath}/">点通科技故障申报系统</a>
			</div>

		   <@shiro.authenticated>
			<div>
				<p class="navbar-text navbar-right"><a class="navbar-link" href="${ContextPath}/signout">退出</a></p>
				<p class="navbar-text navbar-right">当前用户：
		    		  <a class="navbar-link" href="${ContextPath}/user/center">${(session["current_user"].full_name)!}</a>
		    	</p>
		    	<p class="navbar-text navbar-right"><a class="navbar-link" href="${ContextPath}/help"  >帮助文档</a></p>
		    </div>
		    </@shiro.authenticated>
		    <@shiro.notAuthenticated>
		    	<p class="navbar-text navbar-right"><a class="navbar-link" href="${ContextPath}/signin">登录</a></p>
		    </@shiro.notAuthenticated>
			<div id="example-navbar-collapse" class="collapse navbar-collapse">
				<ul class="nav navbar-nav">
					<@shiro.hasPermission name="P_INDEX">	
					<li class="<#if activebar='index'>active</#if>">
						<a  href="${ContextPath}/"><span class="glyphicon glyphicon-home"></span> 首页</a>
					</li>
					</@shiro.hasPermission>
					
					<@shiro.hasPermission name="P_ADMIN">
        				<li class="dropdown">
    					<a href="${ContextPath}/admin"	class="dropdown-toggle" data-toggle="dropdown">
    					<span class="glyphicon glyphicon-list"></span> 管理员目录<span	class="caret"></span>
    					</a>
    						<ul class="dropdown-menu" role="menu">
	    						<li class="dropdown-header"><b>管理操作</b></li>
								<li class="divider"></li>
	    						<@shiro.hasPermission name="P_A_ROLE">
								<li><a href="${ContextPath}/admin/role">角色管理</a></li>
								</@shiro.hasPermission>
    							<@shiro.hasPermission name="P_A_PERMISSION">
    							<li><a href="${ContextPath}/admin/permission">权限管理</a></li>
    							</@shiro.hasPermission>
    							<@shiro.hasPermission name="P_A_TYPE">
    							<li><a href="${ContextPath}/admin/type">类型管理</a></li>
    							</@shiro.hasPermission>
    							<@shiro.hasPermission name="P_A_USER">
    							<li><a href="${ContextPath}/admin/user">用户管理</a></li>
    							</@shiro.hasPermission>
    							<!-- <@shiro.hasPermission name="P_A_EXCEPTION">
    							<li><a href="${ContextPath}/admin/exception">异常管理</a></li>
    							</@shiro.hasPermission> -->
    							
    						</ul>
    					</li>
      				</@shiro.hasPermission>
      				
      				<@shiro.hasPermission name="P_O_DEAL">
    				<li class="<#if activebar='deal'>active</#if>">
    					<a href="${ContextPath}/operate/deal"><span class="glyphicon glyphicon-th-list"></span> &nbsp;故障处理</a>
    				</li>
    				</@shiro.hasPermission>
					<@shiro.hasPermission name="P_O_OPERATES">
						<li class="<#if activebar='operates'>active</#if>">
							<a href="${ContextPath}/operate/operates"><span class="glyphicon glyphicon-th-list"></span> &nbsp;运维记录</a>
						</li>
    				</@shiro.hasPermission>
    				
					<@shiro.hasPermission name="P_R_REPORTS">
					<li class="<#if activebar='reports'>active</#if>">
						<a href="${ContextPath}/report/reports"><span class="glyphicon glyphicon-th-list"></span> &nbsp;申报记录</a>
					</li>
    				</@shiro.hasPermission>
    				<@shiro.hasPermission name="P_R_OFFER">
    				<li class="<#if activebar='offer'>active</#if>">
    					<a href="${ContextPath}/report/offer"><span class="glyphicon glyphicon-th-list"></span> &nbsp;故障申报</a>
    				</li>
    				</@shiro.hasPermission>
      				
  					<@shiro.hasPermission name="P_USER">
					<li class="dropdown">
					<a href="${ContextPath}/bootstrap"	class="dropdown-toggle" data-toggle="dropdown">
					<span class="glyphicon glyphicon-user"></span> 用户管理<span	class="caret"></span>
					</a>
						<ul class="dropdown-menu" role="menu">
							<li class="dropdown-header"><b>用户操作</b></li>
							<li class="divider"></li>
							
								<@shiro.hasPermission name="P_U_CENTER">
      								<li><a href="${ContextPath}/user/center"><span class="glyphicon glyphicon-th-list"></span> &nbsp;个人中心</a></li>
      							</@shiro.hasPermission>
      							
      							<@shiro.hasPermission name="P_U_PWD">
      								<li><a href="${ContextPath}/user/pwdPage"><span class="glyphicon glyphicon-th-list"></span> &nbsp;修改密码</a></li>
      							</@shiro.hasPermission>
<!--       						
							<li class="divider"></li>
							<li><a href="${ContextPath}/bootstrap">Bootstrap主页</a></li>
							<li><a href="${ContextPath}/bootstrap/tree">树形菜单</a></li>
							<li><a href="${ContextPath}/bootstrap/school">Bootstrap学校</a></li>
							<li><a href="${ContextPath}/autho">权限树</a></li>
							<li><a href="${ContextPath}/bootstrap/dash">DASH</a></li>
-->
						</ul>
					</li>
					</@shiro.hasPermission>
				</ul>
			</div>
		</div>
	</nav>
